package com.constructor;

import org.springframework.util.Assert;

/**
 * @author ：HBZ
 * @date ：Created in 2020/12/28 10:55
 * @description：
 * @modified By：
 */
public class Child extends Parent {
   private String name;

    public Child() {
        System.out.println("子类-无参构造方法");
    }

    public Child(String name) {
        this();
        System.out.println("子类-有参构造方法");
        this.name = name;

    }
}
